import Types from '../actionTypes';

import {receivingList} from '../../api';

const RECEIVING_LIST = page => {
  return new Promise((resolve, reject) => {
    receivingList(page).then(res => {
      resolve({
        type: Types.RECEIVING_LIST,
        data: res
      });
    }).catch(err => {
      console.log(err);
    });
  });
};

export default {
  RECEIVING_LIST
};
